<div class="container-fluid">
    <div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="icon-th"></i>
			</span>
			<h5>CNY流水记录</h5>
		</div>
		<div class="widget-content nopadding">
			<table   style="width:100%" class='table table-bordered table-striped'>
				<thead>
				<tr class="strong">
					<th>UID</th>
					<th>原有值</th>
					<th>操作值</th>
					<th>现在值</th>
					<th>操作</th>
					<th>备注</th>
					<th>状态</th>
					<th>创建时间</th>
				</tr>            		
				</thead>
				<tbody>
				<?php if(!empty($page_data)) foreach($page_data as $items){?>
				<tr>
					<td><?php echo $items['uid'];?></td>
					<?php if(isset($get['table']) && $get['table']=='log_ticket'){?>
						<td><?php echo intval($items['old']);?> 张</td>
						<td><?php echo intval($items['use_value']);?> 张</td>
						<td><?php echo intval($items['new']);?> 张</td>
					<?php }else{?>
						<td>￥<?php echo $items['old'];?></td>
						<td>￥<?php echo $items['use_value'];?></td>
						<td>￥<?php echo $items['new'];?></td>
					<?php }?>
					<td>
					<?php 
						if($items['action']=='add'){
							echo " <span style='color:red'>增加</span> ";
						}else if($items['action']=='reduce'){
							echo " <span style='color:blue'>减少</span> ";
						}else{
							echo "<span style='color:#666'> -- </span>";
						}
					?>
					</td>
					<td>
					<?php 
						echo isset($productDesc[$items['name']])?$productDesc[$items['name']]."：":"";
						echo isset($sourceList[$items['source']])?$sourceList[$items['source']]:$items['source'];
					?>
					</td>
					<td><?php echo ($items['status']==1)?"有效":"无效";?></td>
					<td><?php echo $items['create_time'];?></td>
				</tr>            		
				<?php }?>
				</tbody>
			</table>
		</div>
		<div id="page" style="width:50%" class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers">
		   <?php echo $page_html;?>
		</div>
  </div>
  </div>